package com.simple.example.dubbo.apiuser.service.impl;

import com.example.common.dto.GetUserDTO;
import com.example.common.service.user.IUserService;
import com.simple.example.dubbo.apiuser.service.IUserAPIService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by hzy on 2019/1/20.
 */
@Service
public class UserAPIServiceImpl implements IUserAPIService {

    @Autowired
    IUserService userService;

    @Override
    public GetUserDTO findUserByName(String userName) {
        return userService.getUserByName(userName);
    }
}
